<!DOCTYPE html>
<html lang="ch">
<head>
    <meta charset="UTF-8"/>
    <title>销售渠道列表</title>
</head>
<body>
<form action="/comm/findSalesChannel.do" method="get">
    输入搜索：<input type="text" name="channelName" value="${commName!''}" placeholder="渠道名称"/>
    <input type="submit" value="查询结果"/>
</form>
<table cellpadding="5" cellspacing="0" border="1" style="margin-top: 10px">
    <tr>
        <td colspan="3" style="text-align: center">数据列表</td>
        <td colspan="12" style="text-align: right;margin-right: 10px">
            <input type="button" value="添加" onclick="location.href='/comm/goToAddChannel?successPage=/comm/findSalesChannel.do'"/>
        </td>
    </tr>
    <tr>
        <th colspan="4">序号</th>
        <th colspan="2"><input type="checkbox" id="allSelect"/></th>
        <th colspan="5">销售渠道</th>
        <th colspan="4">利润比例</th>
    </tr>
    <#list currentPage.list as data>
        <tr>
            <td colspan="4">${data.id}</td>
            <td colspan="2"><input type="checkbox" name="channelListIds" value="${data.id}"/></td>
            <td colspan="5">${data.channelName}</td>
            <td colspan="4">${data.price}</td>
        </tr>
    </#list>
    <tr>
        <td colspan="8" style="text-align: center">
            <a href="/comm/findSalesChannel.do?pageIndex=1&channelName=${channelName!''}">首页</a>

            <a href="/comm/findSalesChannel.do?pageIndex=${currentPage.prePage}&channelName=${channelName!''}">上一页</a>

            <a href="/comm/findSalesChannel.do?pageIndex=${currentPage.nextPage}&channelName=${channelName!''}">下一页</a>

            <a href="/comm/findSalesChannel.do?pageIndex=${currentPage.pages}&channelName=${channelName!''}">尾页</a>
        </td>
        <td colspan="7" style="text-align: center">
            当前${currentPage.pageNum} / ${currentPage.pages}页 每页${currentPage.pageSize}条
        </td>
    </tr>
</table>
</body>
</html>